package chapter21;
public class Student {
    private String ID;
    private String Name;
    private int nl;


    public String getId() {
        return ID;
    }

    public void setId(String ID) {
        this.ID = ID;
    }

    public String getName() {
        return Name;
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public int getAge() {
        return nl;
    }

    public void setAge(int nl) {
        this.nl = nl;
    }

    public Student() {
    }

    public Student(String ID, String Name,int nl) {
        this.ID = ID;
        this.Name = Name;
        this.nl = nl;
    }

    @Override
    public String toString() {
        return "id: "+ID+"\tname: "+Name+"\tage: "+nl;
    }
}
